home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: MegaDisc
/
MegaDisc 45 (1996-03)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].zip
/
MegaDisc 45 (1996-03)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].adf
/
Programs
/
FLP_by_ANP
/
Rst.doc
< prev
next >
Wrap
Text File
|
1996-01-23
|
3KB
|
41 lines
*****************************************************************************
* Project Details *
* --------------- *
* Project Name: Rst (reset) *
* Project Version: 1 *
* Copyright: Anthony N Peck *
* Date: Sunday 21st May 1995 *
* *
* Contact: *
* 68 Woralul St *
* Waramanga ACT 2611 *
* Australia *
* *
* Summary *
* ------- *
* A dinky little program that clears some memory vectors before a reset. *
* The code is inspired by Chris Hames VirusMemKill which has an option to *
* reset during times of infections. There is no real need to clear the *
* xxxxCapture vectors, but I assume that it would be nice if your system *
* lock up is due to a virus. I suggest you could attach this program to *
* your menu (e.g. via BrowserII) or as a hotkey (e.g. MachIV), and then *
* if your Shell goes down you still have access to a good boot! For a *
* WB solution, check out WBRst. *
* *
*****************************************************************************
start: MOVE.L $04,A6 ; ExecBase to A6
CLR.L $32(A6) ; Clear Warm Capture
CLR.L $2E(A6) ; Clear Cool Capture
CLR.L $2A(A6) ; Clear Cold Capture
CLR.L $226(A6) ; Clear KickTagPtr
LEA Boot,A5 ; Load boot routine to A5
JSR -$1E(A6) ; Supervisor mode reboot
Boot: LEA $8000000,A0 ; Load silly memory location to A0
RESET ; Stack pointer set for supervisor mode
JMP (A0) ; Jump and gone...
END ; Adios!